package fr.emn.integration.synthese.controle;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import fr.emn.integration.synthese.abstraction.Cours;
import fr.emn.integration.synthese.presentation.EncadrantsDialog;

public class ControlJButtonVoirEncadrants implements ActionListener{
	
	private JButton button;
	private Cours modele;
	private Frame parent;

	public ControlJButtonVoirEncadrants(JButton button, Cours modele,
			Frame parent) {
		super();
		this.button = button;
		this.modele = modele;
		this.parent = parent;
	}



	@Override
	public void actionPerformed(ActionEvent arg0) {
		EncadrantsDialog encadrants = new EncadrantsDialog(parent, modele);
		encadrants.setVisible(true);
	}

}
